J/psi production and nuclear effects in p-Pb collisions at √s(NN)=5.02 TeV