Trump has threatened to attack Iran, prompting Tehran to warn of retaliation amid growing fears of conflict.