Precision measurement of the weak charge of the proton