Soft drinks makers Fever-Tree and AG Barr both reported rising sales, defying a slump in consumer confidence across the UK.