Weyl-invariant gravity and the nature of dark matter