Cape Cod shark activity closes beach to swimming