Cognitive factors in depressive disorders: A developmental perspective