The stock market has peaked and will trade flat for the rest of 2024, Goldman equity chief says