A study has suggested that a daily habit could help reduce your risk of developing dementia