The New York Attorney General has reached a $5 million settlement with the cryptocurrency platform Uphold.