Mitigating the hosing instability in relativistic laser-plasma interactions