President should maintain ties with own party: Erdogan