How grandparents may lessen chances of dementia