UK shop prices reached the shallowest deflation level in the last four years in September, with prices "teetering" on the edge of inflation.