Japan factory output hits 3yr-low on weak domestic demand, export slump