Kinematically complete measurement of the proton structure function F2 in the resonance region and evaluation of its moments