Former US Open champion Daniil Medvedev has been handed a substantial fine for his behaviour in an extraordinary first-round exit.