Deaths from Iran's protests have risen to almost 2600 as Tehran warns it will attack US bases if President Donald Trump follows up threats of military action.