Japan’s factory output rises for fourth month on jump in car, machinery production