Goldman Sachs to pay $5 billion in mortgage settlement