Factory output up in Japan for fifth consecutive month