Latvian prime minister resigns after coalition partner withdraws support