Screenwriter Deborah Davis reveals The Favourite was difficult to fund due to female lead cast