A Malawian court rules that US pop star Madonna has failed in her bid to adopt a second child from the country.