Associations of maternal weight gain in pregnancy with offspring cognition in childhood and adolescence