Understanding Oversquashing in GNNs through the Lens of Effective Resistance