Modelling Palaeoecological Time Series Using Generalised Additive Models