Former British prime minister Keir Starmer is to quit parliament, according to a newspaper report.