Libyan factions sign countrywide UN-brokered cease-fire