AIG posts record quarterly loss of $5.29 billion