The UK and Chinese governments have signed an agreement to share knowledge and encourage investment in clean energy technologies in both countries.