A Modal Type Theory of Expected Cost in Higher-Order Probabilistic Programs