The Prince and Princess of Wales met bereaved families of children killed in a knife attack in Southport.