Euclid: Early Release Observations — Overview of the Perseus cluster and analysis of its luminosity and stellar mass functions