Cosmological simulations of intergalactic medium enrichment from galactic outflows