Domstol i Hongkong har fundet prodemokratiske Jimmy Lai skyldig i ulovligt samarbejde med udenlandske magter.