Clark measures and a theorem of Ritt