Can anxiety and depression actually affect your memory? We asked an expert to explain