Intergenerational care a boon on both ends of life’s journey, study finds