From RAGs to rich parameters: Probing how language models utilize external knowledge over parametric information for factual queries