The royal couple visited a town in Wales, which was affected by severe flooding in December.