Interacting dimers on the honeycomb lattice: an exact solution of the five-vertex model