Newcastle United midfielder Sean Longstaff says he was "distracted" by speculation linking him with a summer move to Manchester United.