Shares of billionaire Warren Buffett’s Berkshire Hathaway closed nearly 3% higher after the conglomerate reported a $3.8 billion write-down and a decline in quarterly operating profit.