Bag and mask ventilation in newborn resuscitation is contraindicated in –