In a sharp response to remarks by Donald Trump, Iran has questioned the US narrative on its nuclear program.