Indian shares close flat as metals offset slide in consumer stocks