Associations of diabetes control and anti-diabetes medications with the risk of dementia in patients with diabetes: a cohort study based on the UK Clinical Practice Research Datalink