Gauge invariance of the β-function in non-relativistic quantum electrodynamics