Glencore writes off $5.6bn to end DRC dispute