Correction of power factor on resistance welding machine loads