L'Oreal has launched a "smart" internet-connected hairbrush that analyzes users' hair and recommends products