Nihat Ergün, AK Parti'den istifa etti