Study of psi(2S) production and cold nuclear matter effects in pPb collisions at root s(NN)=5 TeV