At least 37 people have been killed and dozens wounded after bomb attacks on two Egyptian churches claimed by the Islamic State group.