THEORY OF GIANT MAGNETORESISTANCE IN GRANULAR ALLOYS