Thermohydrodynamics of an evaporating droplet studied using a multiphase lattice Boltzmann method