On the weakly polymatroidal property of the edge ideals of hypergraphs