Berkshire restarts buybacks with nearly $400 billion in cash