Hadronic phase transitions at supranuclear densities and the delayed collapse of newly formed neutron stars