Initial stages of pattern formation in Rayleigh-Bénard convection