Charles Leclerc believes it's a "matter of time" before Ferrari are able to challenge Red Bull consistently.