Metastability and dispersive shock waves in the Fermi–Pasta–Ulam system