US President Donald Trump and top Iranian officials have exchanged threats as widening economic protests swept across parts of the Islamic Republic.