Similar Items: Federated Learning With Dynamic Pruning for Efficient Model Aggregation in Heterogeneous Environments