Subcritical transition to turbulence in diverging pipe flows