The classical Yang–Baxter equation and the associated Yangian symmetry of gauged WZW-type theories