depression and anxiety memory loss