The effect of the environment on the stellar mass - size relation of present-day galaxies