Classifying spam emails using agglomerative hierarchical clustering and a topic-based approach