Intergalactic medium heating by dark matter