Oil dips but hovers near three-year highs on recovery signs