A stochastic model for palaeomagnetic field variations