A man is warning others about the risk from e-cigarette batteries after a spare exploded in his pocket and burned his leg.