Armed groups withdraw from government, raising questions over future of peace agreement