Exercise can help ward off dementia for women – while men need more brain training to avoid cognitive decline, study finds