I don't have any studies, but it seems fairly clear to me that it's better, at work, to not be distracted. If you find yourself thinking "I'm cold" or "I'm hot" every ten minutes, or even every hour, you're clearly not as productive as you could be.
Temperature is definitely a question of personal preference - I've had a housemate with such different preferences from mine that we literally couldn't be comfortable in the same room - but few people have extreme preferences, so it should be possible to find a temperature that's good for most. From personal experience, I'd place it around 22-25 Celsius.
It also depends on the kind of work done - physical work warms you up, so you'll need slightly higher temperatures for people who are sitting in front of computers all day than for people who are moving around.