Russian President Vladimir Putin is in Iran to underpin closer ties between two countries at loggerheads with the United States as President Donald Trump threatens to pull out of a 2015 nuclear deal with Tehran.