Retailers post modest June sales gains