Heineken has signed a new deal with rugby's global authorities that will see it sponsor the Rugby World Cup 2019 in Japan.