Theresa May has held talks with the Japanese Premier Shinzo Abe on post-Brexit trade, North Korea and security cooperation.