Jakob Ingebrigtsen ran down Mohamed Katir in the final strides to win gold in the 5000m at the World Athletics Championships.