Petrino resigns after rocky season