Tory MP apologises over 'man in a wig' tweet about transgender rival