UK shop prices edged closer to ending a four-year deflationary trend in June, as feed-through from the depreciation of the pound and rising commodity prices continues to put pressure on household finances.