The Birmingham-CfA cluster scaling Project – I. Gas fraction and the M-Tx relation