Social and behavioural factors associated with frailty trajectories in a population-based cohort of older adults