Helping others for just a few hours a week could slow memory loss and help ward off dementia, a major new study suggests.