Gabriel Martinelli scorede hattrick, og Christian Nørgaard fremtvang et selvmål, da Arsenal vandt i Portsmouth.