Large deviations for the rightmost position in a branching Brownian motion