Nurturing parents can buffer against harmful effects, study finds