Denmark's food safety watchdog made "serious mistakes" in its handling of a listeria outbreak linked to the death of 12 people, the country's government has said.