High physical activity in midlife and late life is linked with a significantly lower risk for dementia, a new study has found.