Local law and Tracy–Widom limit for sparse random matrices