Erdogan defended ties with Russia during talks with Putin