Flaws in the machine: COVID-19 and failings of global trade and investment systems