The cousin of Qatar’s foreign minister has been convicted in a Lebanese court of channelling funds to al-Qaeda.