Berkshire Hathaway’s longtime edge over S&P 500 shows signs of eroding