Evolution of Planetesimal Velocities Based on Three-Body Orbital Integrations and Growth of Protoplanets