Prince Philip forced to pull out of public event after falling ill