Spontaneous breaking of conformal invariance in theories of conformally coupled matter and Weyl gravity