Identifying specificity groups in the T cell receptor repertoire