US President Donald Trump vowed to attack Iran again if Tehran tries to rebuild its nuclear programme.