More than 100 schools told to shut crumbling buildings