Japan factory output dives in knock to recovery