Investors are optimistic but wary of geopolitics, BofA says