Search for fractionally charged particles in pp collisions at sqrt(s) = 7 TeV