Many people think cancelling a credit card is a easy decision, but it can affect your credit score in surprising ways.