Imran vows legal action against police raid