Sri Lankan prime minister resigns after protests over economic crisis