Charles Christopher Pepys, Earl of Cottenham, 1781-1851