Cognitive ability in childhood and cognitive decline in mid-life: longitudinal birth cohort study