Understanding and analysing time-correlated stochastic signals in pulsar timing