The Duke and Duchess of Cambridge began their first full day of engagements in Pakistan by learning about education for girls.