Berkshire Hathaway will buy Taylor Morrison Home Corp in an all-cash deal worth about $6.8 billion to expand its footprint in the housing sector.