Modulation of proton beams by relativistic electron beam-plasma instability