UK's former prime minister to stand down as lawmaker