Prince William has been met by a handful of protesters, outweighed by excited crowds, as he finished his tour of Cape Town.