Growing U.S. pressure on Iran has weakened pragmatic President Hassan Rouhani and made his hardline rivals more assertive at home and abroad, recent developments show.