Anomalies in B-decays and U(2) flavor symmetry