Libya’s warring sides sign agreement for ‘a permanent ceasefire in all areas’ in what the UN calls a ‘historic achievement’.