Reduction of affine two-loop WZNW model, the Toda system coupled to the matter and topological confinement