Russia has offered to mediate to try to help restore calm to the Middle East following US and Israeli strikes on Iran, which Moscow has condemned.