High-redshift X-ray properties of the haloes of simulated disc galaxies