The noncommutative KP hierarchy and its solution via descent algebra