Global ministers have agreed a deal calling for cotton from least developed countries to be given duty-free and quota-free access to the markets of developed countries from January.