Commodities trader Glencore has reached agreement with Swiss mining group Xstrata on a merger that would create a global group worth $90-billion.