Phase transitions in individual sub-micrometre superconductors