Ivory Coast foes agree ceasefire