Gov. Andrew M. Cuomo is proposing to spend as much as $400 million to purchase homes wrecked by Hurricane Sandy, have them demolished and then preserve the flood-prone land permanently, as undeveloped coastline.