Gender-affirming treatment and mental health diagnoses in Danish transgender persons: a nationwide register-based cohort study