Origin Energy will book a A$270 million impairment in the process of exiting its majority shareholding in Contact Energy