Magnetic properties of the frustrated diamond chain compound Cu3(CO3)2(OH)2