A UK MP has resigned from the board of a cryptocurrency project after it was revealed that he was secretly getting paid for his services.