Tens of thousands of people gathered in Beirut early on Sunday to attend the funeral of Hezbollah’s former leader, nearly five months after he was killed in an Israeli airstrike on a southern suburb of the Lebanese capital.