J/ψproduction in proton-induced collisions at energies available at the GSI Facility for Antiproton and Ion Research