On a theorem of F. Riesz concerning the form of linear functionals