South Korea PM says resignation the right way to apologise over ferry disaster