How Inheritances Shape Wealth Distributions