A large cargo ship was attacked near the Strait of Hormuz on Sunday as Iran pushes to assert control over the vital global energy shipping route.