NATO says several of its websites have been targeted in a significant attack that was claimed by Ukrainian hackers in what appeared to be the latest bout of virtual warfare linked to the country’s crisis.