The German E. coli outbreak that killed dozens and sickened thousands and hit the produce sector across Europe has come to an end, health officials have said.