UKIP leadership candidate 'would bring back capital punishment'