Studies show that retaining muscle mass as you age, especially through resistance training, may help safeguard your cognitive health.