The diversified miner posted a worse loss than expected as it booked billions of dollars worth of net impairments.