On the existence of optimal shapes in contact problems — Perfectly plastic bodies