Covid inquiry brexit partly to blame