Romanian president announces resignation