Diabetes, dysglycemia and cognitive dysfunction