Data-breach costs take toll on Target profit