Sri Lanka prime minister resigns amid worsening economic crisis