Den internasjonale domstolen har avgjort at Myanmar begikk folkemord mot rohingya-minoriteten under militæroperasjoner i 2017.