Measurement of b hadron production fractions in 7 TeV pp collisions