The Duke and Duchess of Edinburgh were given a warm welcome at a hillside village on the last day of their tour of Nepal.