Armed groups vying for control of the Libyan capital have agreed to set up a mechanism to “consolidate” a recently agreed ceasefire, the United Nations’ Libya mission, UNSMIL, said on Sunday.