The cognitive effects of depression