Bombs have exploded in a market near a church in the Iraqi capital, killing 35 people and wounding more than 50, the interior ministry says.