The Thai king's eldest daughter has died at the age of 47 after a prolonged illness, the royal palace said in a statement.