Cognitive function and its transitions in predicting all-cause mortality among urban community-dwelling older adults