Agency urges banks to work with homeowners to prevent foreclosures