Internationella domstolen har slagit fast att Myanmar begick folkmord mot den rohingya-muslimska minoriteten i norra Rakhine-staten.