A healthy diet, regular exercise, and an active social life are some of the keys to maintaining your memory.