Foreclosure rate slows, but still at record high