The Duke and Duchess of Cambridge ripped up the timetable for their high-profile Pakistan tour - to visit the home of a family they met by the side of the road.