Pubertal timing, menstrual irregularity, and mental health: results of a population-based study