The chairman of Tesco, John Allen, resigned from the company following allegations of inappropriate behaviour.