The Prince of Wales ​and Princess Anne have joined other royals and European leaders at the funeral of King Harald V of Norway.