Warren Buffett's Berkshire Hathaway Inc has signed an agreement to allow extraction of lithium from its geothermal wells in California.