Waiting time statistics in solar flares