At least 360 people kidnapped by Boko Haram jihadists from a mainly Muslim community in Nigeria's north-eastern Borno state in March have been freed from a remote mountain hideout.