Ugandan army confirms it will leave South Sudan