Search for slowly moving magnetic monopoles with the MACRO detector