Text this: Associations between modifiable risk factors and cognitive function in middle-aged and older Chinese adults: joint modelling of longitudinal and survival data