Nonabelian family symmetry and the origin of fermion masses and mixing angles