Japan PM hangs on after election debacle