The effect of temperature on the dynamics and functioning of microbial communities