Barclays says these stocks can still thrive as consumers cut spending because of inflation