Type 2 diabetes increases dementia risk