Study: Jobs that demand more of the brain have a lower risk of dementia