what type of brain injury causes memory loss