Td to 1T′ structural phase transition in the WTe2 Weyl semimetal