US President Donald Trump and Shinzo Abe, Japan's prime minister, have agreed to take further action on North Korea.