A new proof of the Maurey-Pisier theorem