India's ONGC to buy majority stake in refiner HPCL for $5.78 billion