The cosmic evolution of the stellar mass-velocity dispersion relation of early-type galaxies