BMI and risk of dementia in two million people over two decades: a retrospective cohort study