Physical activity trajectories and cognitive function: A national cohort study