Japan’s core machinery orders, a leading indicator of capital spending, rose for the third straight month in August.