Cofnod E-bost: Frailty trajectories to identify end of life: a longitudinal population-based study