Renormalization group and quantum critical phenomena in the large-n limit