Wales maintained their 100 per cent start to the 2019 Rugby World Cup after they edged to a 29-25 win over Australia in Tokyo.