Clicking Sound with the Bike Stopped
First thing I'd check is the headset assembly, even on a new bike. Eliminate it by dismantling, then greasing all the surfaces and reinstalling with careful adjustment. Even applies to brand new bicycles occasionally.
It could be something else, perhaps spokes moving or qr axle, the stem or some part of the brake as ideas. Whenever you're creak-hunting, check and grease or substitute only one thing at a time before testing it out so you can isolate the problem.