Cameroonian troops and their allies have freed a German man who was held for six months by Islamist terror group Boko Haram, Cameroonian President Paul Biya said.