Educational attainment protects against type 2 diabetes independently of cognitive performance: a Mendelian randomization study