Rival militant groups in the Central African Republic agree to disarm