Fleeing residents have headed towards the capital of Beirut in the biggest exodus since 2006.