The other contributors are correct in the literal meaning of the word as "one who masturbates", however in Australia, it is used more like a slightly more vulgar synomym for words like fool or idiot
Did you know Brad got fired again for stealing from the boss - what a wanker