MotoGP world champion Jorge Martin will have surgery after breaking his hand and foot following a crash in pre-season testing.