Paul Marchant has resigned as the boss of high street fashion giant Primark following an allegation about inappropriate behaviour.