Tesla fell short of Wall Street’s expectations after reporting weaker earnings, negative free cash flow and shrinking profit margins.