ϕ-Meson production at forward rapidity in p–Pb collisions at √sNN=5.02 TeV and in pp collisions at √s=2.76 TeV