Forty people have been killed in flooding in Vietnam since early September, according to official figures.