Finanskonglomeratet Berkshire Hathaway har sålt sina aktier i General Motors och Procter & Gamble samt minskat ned sin position i Amazon.