For at least 1,500 years, Chinese masons have mixed sticky rice soup into their mortar for extra strength. Chemists now know why. Karen Hopkin reports