Validate whether a string is a valid IPv4 or IPv6 address, returning standardized format and validation status.