A cohort study of gestational diabetes mellitus