Stocks gain as GBP slips on inflation