High-resolution simulations of the final assembly of Earth-like planets I. Terrestrial accretion and dynamics