Measurement of branching fractions and CP and isospin asymmetries for B→K*γ