Arsenal moved back into the Premier League top four as they edged out bottom club Leicester 2-1 at the Emirates Stadium.