Latvian premier announces resignation