does diabetes cause dementia