Gabriel Martinelli hit the headlines for the right reasons by scoring a hat-trick as Arsenal overcame an early scare to thrash Championship strugglers Portsmouth 4-1 in the FA Cup third round.