Pique to retire from Spain in 2018