US foreclosures surge as banks tackle backlogs