Measurement of the cross section and angular correlations for associated production of a Z boson with b hadrons in pp collisions at sqrt(s) = 7 TeV