Exercise can keep brain active, cut dementia risk