My grandmother was terrified of losing her memory, but in the end she did. Here’s what could have helped her—and can help you.