Renormalization group analysis of self-interacting walks and spin systems