Experimental study of a foam flow in horizontal pipes: two flow regimes and its implications