UN loses reputation: Turkish president