A report has found the two planes were only metres away from each air and narrowly managed to avoid an in-air collision.