Welsh legislation will restrict those travelling from hotspot areas