Cosmological simulations of the formation of the stellar haloes around disc galaxies | Synapse