A state space model for inflation