Japan factory output up but retail sales down amid fragile recovery from pandemic