Reduction of cocycles and groups of diffeomorphisms of the circle