The former British colony of Hong Kong has marked the 21st anniversary of its return to Chinese rule with a flag-raising ceremony.