Banks, small companies and other stocks that had earlier been left behind by the euphoria around artificial-intelligence ...