Fires have been extinguished aboard a container ship which collided with a tanker in the North Sea off the East Yorkshire coast.