Transverse mass distribution and charge asymmetry in W boson production to third order in QCD