Wright–Fisher–type equations for opinion formation, large time behavior and weighted logarithmic-Sobolev inequalities