Perring, John, Sir, 1st Baronet, MP