Former Gitmo inmate to take legal action against UK government