The renormalization group and the effective potential in a curved spacetime with torsion