Orbital Evolution of Protoplanets Embedded in a Swarm of Planetesimals