Your statement converts the value of CURRENT_TIMESTAMP
into a string, which is not what you want.
Make the CURRENT_TIMESTAMP
function call part of the real statement:
EXECUTE 'UPDATE '||TG_RELNAME||'_hv SET fecha_validez_hasta=CURRENT_TIMESTAMP where id='||OLD.id
Note fecha_validez_hasta=CURRENT_TIMESTAMP
instead of fecha_validez_hasta='||CURRENT_TIMESTAMP||'..