Japanese Prime Minister Shinzo Abe and US President Donald Trump agree the priority is to prevent North Korea from launching ballistic missiles towards Guam.