Buying into ICOs can lead to the loss of investments, the chair of the European Securities and Markets Authority says.