Doctors say things like your diet, sleep routine, and even what you do to wind down matter for brainpower.