The midterm elections and a potential end to the Iran war could present challenges to this bullish stock market, Bank of America strategists said.