The organisers of the Olympics opening ceremony have apologised to religious groups who were outraged by one of the scenes.