Experimental evidence for an intermediate phase in the multiferroic YMnO3