Moving gravitational wave sources at cosmological distances: Impact on the measurement of the Hubble constant