Measurement of electrons from beauty hadron decays in pp collisions at √s = 7 TeV