Mexico's government is close to introducing legislation that would regulate fintech firms, including those that work with cryptocurrencies.