The Duke of Cambridge showed off his sporting abilities after picking up a cricket bat during his Pakistan royal tour.