Half of nation's foreclosed homes still occupied