Acceleration of electrons in the plasma wakefield of a proton bunch