Healthy lifestyle may reduce the risk of dementia and extend life expectancy