Relativistic jet feedback in high-redshift galaxies – I. Dynamics