Predicting dementia in primary care patients with a cardiovascular health metric: a prospective population-based study