A car bomb in a packed food market north of Baghdad has killed at least 30 people as a surge in violence nationwide has pushed Iraq's death toll for 2013 above 5,800.