Jamie Carragher says Cardiff fully deserved their 1-0 victory in the first-ever top-flight south Wales derby.