Representations of AF-algebras and of the group U (∞)