The World Trade Organisation's 147 member states have reached a deal to re-launch global trade talks and cut farm subsidies.