New York City Mayor Zohran Mamdani has criticised the volatility of artificial intelligence linked stocks in the US.