Former Australian Test cricketer Stuart MacGill has been found guilty of taking part in the supply of cocaine in Sydney.