Your cousin would appear to be the one in trouble. What your cousin should have done is follow the procedure for showing that he wasn't the driver (possibly naming you) and then when the ticket was issued in your name, you could have paid it and taken traffic school, or is this what happened?