Obama casts his vote as campaign trail hots up in battleground states