Grandparents are bad for children's health, study says