Renormalization group approach to QCD phase transitions