A costly data breach hit profits at US retail giant Target Corporation in the fourth quarter but also impacted consumer confidence and traffic.