Primark chief executive Paul Marchant has resigned from his role will immediate effect following an investigation into alleged inappropriate behaviour towards women.