ARFED: Attack-Resistant Federated averaging based on outlier elimination