The Duke and Duchess of Cambridge were all smiles as they attended the wedding of their friends in Switzerland.