Photoproduction of vector mesons on protons at energies up to 5.8 GeV