Theory of the martensitic transformation in cobalt