Agents' beliefs and economic regimes polarization in interacting markets