Swedish energy firm Vattenfall has pulled out of a UK wind project, citing "increased risk" triggered by changes to planning rules in the country.