People 'pretend' to be gay, says UKIP by-election candidate