UK high streets suffered for a second consecutive month from a decline in consumer traffic in July, new figures show.