Contractors linked to hostile foreign powers such as China will be targeted by a new security task force if Labour wins the next general election.