Measurement of branching fractions and polarization in B → φK(*) decays