The Duke and Duchess of Cambridge have surprised school children with a video call amid the coronavirus pandemic.