Controlling the resistive hose instability in relativistic electron beams