Foreclosures are surging as U.S. homeowners grapple with rising costs