Japan’s manufacturing activity shrank for the second consecutive month in August, as US tariffs continued to dampen overseas demand.