Metastability for Glauber dynamics on random graphs