Comedian Will Ferrell recovering after accident