South Sudan’s government has agreed at a meeting of East African leaders to end hostilities against rebels accused of trying to overthrow the young country’s regime, but the ceasefire was quickly thrown into doubt because the head of the rebellion was not invited.