Rupee retreats from opening highs on dollar demand