Association between depression diagnosis and educational attainment trajectories: an historical cohort study using linked data | Synapse