The Winter Olympics opened in a blaze of colour on Friday night, with a nearly three-hour ceremony marking the start of the Games.