Josh Simons has resigned as a Cabinet Office minister amid a controversy over a thinktank he used to run, which was accused to paying a PR firm to investigate journalists.