Sensex closes flat at 78,520; Iran tensions weigh on markets