Galactic r-process enrichment by neutron star mergers in cosmological simulations of a Milky Way-mass galaxy