Measurement of the reaction γp → ppp at photon energies 4.7 ⩽ Eγ ⩽ 6.6 GeV