Libya factions sign ‘permanent’ ceasefire