The contact problem of elasticity theory for bodies with cracks