To Retrieve or Not to Retrieve? Uncertainty Detection for Dynamic Retrieval Augmented Generation