Trajectories of depressive symptoms and their relationship to the progression of dementia