Japan sweats through hottest July on record