People who are at risk of being diagnosed dementia can potentially reduce their odds of developing the condition by more than a third if they are fit and healthy, a new study suggests.