Punch Taverns has secured the purchase of the Spirit pub group.