Shop price inflation remained unchanged in July after months of slowing amid a warning of uncertainty ahead.