Physical properties of terrestrial planets and water delivery in the habitable zone using N-body simulations with fragmentation