US President-elect Donald Trump and the head of Nato have met for talks on global security, the military alliance said.