A longitudinal study of cognitive function in melancholic and non-melancholic subtypes of major depressive disorder.