diabetes memory loss