Statistical Estimation, Uncertainty Quantification, and Detection for Hawkes Processes