Cross section and pp¯ invariant mass distribution of the reaction γp→pp¯p at 4.7 ⩽ Eγ ⩽ 6.6 GeV