Anomalous metals and quantum superconductor-metal-insulator transitions in two-dimensional granular superconductors