Ferromagnetism in the Hubbard model: instability of the Nagaoka state on the triangular, honeycomb and kagome lattices