The Tannaka group E6 only arises from cubic threefolds