Regulators have banned Elizabeth Holmes, the chief executive of Theranos, from owning or operating a laboratory for two years.