Functional equations for Weyl group multiple Dirichlet series via the Yang-Baxter equation