Tripoli is formally controlled by the internationally recognised Government of National Accord, but armed groups working with it act with autonomy