Kazakh government resigns amid nationwide protests