Internationella domstolen har slagit fast att Myanmar begick folkmord mot rohingya-muslimer under 2017 års militära operationer.