High cognitive reserve attenuates the risk of dementia associated with cardiometabolic diseases