UK beer sales fell by nearly 5% in this year's second quarter, but the decline in the off-trade slowed.