Similar Items: FEDMAD: A Privacy-Preserving Adaptive Federated Learning Framework with Robustness against Data Quality Variations