Induced abortion and implications for long-term mental health: a cohort study of 1.2 million pregnancies