Maternal age and the risk of adverse pregnancy outcomes: a retrospective cohort study