Insulin resistance, diabetes and cognitive function: consequences for preventative strategies.