Associations between breastfeeding and cognitive function in children from early childhood to school age: a prospective birth cohort study