SeWA: Selective Weight Average via Probabilistic Masking