Cognitive correlates of depression in patients with eating disorders