The electrical transport properties of granular high temperature superconductors