Paralinearization of the Dirichlet to Neumann operator, and regularity for three-dimensional water waves