The given sentence belongs to Past Continuous as the sentence use was + ing form of verb. So, Past Perfect Continuous should be used to change the narration of the sentence. The correct reported form of the given sentence would be 'He told me that it had been raining all day'.