Aggregate tags into topics