Thanks for the replies NormK and Maxwestern.

Turns out the problem was poor contact, the cable lugs were contacting on the nuts rather than the posts and there was a fair amount of oxidation on the nuts. I replaced the nuts, added some washers and the switch is working well again.