Wales' hopes of Euro 2024 qualification were seriously damaged by a humiliating 4-2 defeat to Armenia in Cardiff.