Accurate evolutions of inspiralling neutron-star binaries: Prompt and delayed collapse to a black hole