The Queen and Prince William have visited a relief centre helping victims of the Grenfell Tower fire.