History of mood or anxiety disorders and risk of gestational diabetes mellitus in a population-based cohort.