Japan's factory activity shrinks