The Prince and Princess of Wales arrived in Pontypridd to learn how the community is dealing with floods.