Warren Buffett’s company has trimmed its stake in Chinese electric car and battery maker BYD for the first time since it bought the shares in 2008, an investment that has soared in value.