Donald Trump has pledged to end the Ukraine-Russia war "within 24 hours" - without explaining how he would do so.