Conservative MP Mark Menzies has quit the party after allegations that he misused party donations to pay off "bad people" after a frantic call to a local campaigner.