Serbian tennis player Viktor Troicki has received an 18-month ban for failing to provide a blood sample during a drugs test.