Sex- and age-specific incidence of fractures in mental illness: a historical, population-based cohort study