The world’s biggest oil companies are borrowing record amounts of money to cope with a slump in crude prices.