Most emerging-market currencies gained on Tuesday, rebounding from an earlier selloff amid optimism the US and Iran are nearing a deal to restart peace talks.