Analysis and numerical simulation of the diffusive wave approximation of the shallow water equations