Experimental results on J/ψ production by π±, K±, p and p incident on hydrogen at 39.5 GeV/c