A French court has found cement company Lafarge guilty of financing armed groups during the Syrian war.