Russian president says continued confrontation would harm all sides as Moscow maintains ties with both Iran and Gulf states