Berkshire Hathaway considered investing in the privately held ride-hailing company Uber earlier this year, but Warren Buffett wasn’t always so enthusiastic about the sharing economy.