JPMorgan’s Dimon and Goldman’s Solomon warn investors to be ‘cautious’ and ‘vigilant’ as economic risks mount and conflicts rage