Japan PM says will quit after quake recovery