The UK government has confirmed that it has reached an understanding with the European Union (EU) over dividing World Trade Organisation (WTO) farm produce quotas post-Brexit.