The formation of disc galaxies in high-resolution moving-mesh cosmological simulations