Disease trajectories of multimorbidity in Scotland: a data science approach