Warren Buffett's firm reports $12.8 billion loss as investments fall but its insurers performed well