Type 2 diabetes mellitus and cognitive function: understanding the connections