The Law Society is warning some property buyers are losing their deposits after unknowingly entering agreements on flood-damaged houses.