Berkshire Hathaway ended the first quarter with a record cash pile of roughly $397 billion after continuing to dump stocks.