Temperature renormalization group approach to spontaneous symmetry breaking