Gunmen have cut off the main water pipeline to Libya’s besieged capital, Tripoli, spelling more misery for residents already reeling from weeks of fighting.