Apparatus for shaping or moulding baked wafers