The second data release from the European Pulsar Timing Array IV. Search for continuous gravitational wave signals