Berkshire trimmed its Apple stake and opened a new position in The New York Times in the fourth quarter, marking Warren Buffett’s final period as CEO.