The cracking and decohesion of thin films on ductile substrates