Thousands of South Sudanese have watched the raising of the country's flag at an independence ceremony in the new capital, Juba.