Weaker social ties are linked to an increased dementia risk