Relationship between cognitive impairment and depressive symptoms