How you manage three health factors may affect your risk of developing dementia sooner rather than later, a new study has found.