Cubs lose 12th straight, 10-4 to Pirates