Fermion mass hierarchies and flavor mixing from T ' symmetry