Muon astronomy with the MACRO detector