King Juan Carlos has excluded his son-in-law Inaki Urdangarin from official activities over a corruption scandal involving a company formerly run by the Duke of Palma.