South Korean PM resigns over response to ferry disaster