Libya to clear Tripoli of militia groups