Magnetic monopole search with the MACRO detector at Gran Sasso