Temperature-flow renormalization group and the competition between superconductivity and ferromagnetism