Beresford, John Claudius, active 1816-1818, MP