Vertex Pharmaceuticals finalized a deal yesterday to move its offices to the Fan Pier development on the South Boston Waterfront. A company spokesman said Vertex will pay an average of 72.5 million in annual rent for 1.1 million square feet of office and lab space over the next 15 years.