Predicting dementia: insights from routinely-collected healthcare data