Social isolation increases the risk of dementia, new study finds