Japan PM vows to stay on despite election debacle