At least 24 people have been injured in feuds between Christians and Muslims in northern Egypt, a security official says.