Australia's two major supermarket chains are being taken to court by the consumer watchdog for allegedly misleading shoppers with price discounts on common products.