Japan’s exports fell less than expected in June in a tentative sign that overseas demand could be recovering from persistent weakness that set in last year.