US President-elect Donald Trump has campaigned on a promise to end America's involvement in wars.