Renormalization group flow for SU(2) Yang-Mills theory and gauge invariance ∗