Protesters in Hong Kong tried to force their way into the Legislative Council building as the city marks the anniversary of the British handover to China.