Home sales, foreclosures up