China’s stock market has dived on Olympics opening day, reaching the lowest level since October 2007.