ONGC to invest Rs 31,000 crore in oil search