A Theory of Solar Type III Radio Bursts