Kevin Rudd, Australia's former prime minister, has been treated in hospital for a foot infection after he spent hours helping Brisbane residents during the flood crisis.