TeraHAC: Hierarchical Agglomerative Clustering of Trillion-Edge Graphs