A new well-posed vorticity divergence formulation of the shallow water equations