A stochastic model of fertility based on the age-parity distribution