A Representer Theorem for Hawkes Processes via Penalized Least Squares Minimization