On the diffusive wave approximation of the shallow water equations