Gas flows in the circumgalactic medium around simulated high-redshift galaxies