Cognitive Factors in Depressive Disorders: A Developmental Perspective