Dutch midfielder Wesley Sneijder has retired from international football following talks with new Netherlands coach Ronald Koeman.