Front propagation in infinite cylinders I. A variational approach