Treasury minister Tulip Siddiq has resigned from the government, telling Sir Keir Starmer she had become “a distraction” from the government’s work.