Neutrino astronomy with the MACRO detector