Association between physical-activity trajectories and cognitive decline in adults 50 years of age or older