Unified theories with U(2) flavor symmetry