Vladimir Putin has praised Donald Trump as an “intelligent” man who “will find a solution” to the war in Ukraine.