India's top court on Wednesday banned children from taking part in a popular but potentially dangerous religious festival in the country's west that sees young boys scale human pyramids.