The influence of thermal fluctuations on the kinetic-energy distribution of fission fragments