A Japanese homebuilder has developed a house that floats during flooding as a measure to prevent damage.