Modified galactomannans and process for their preparation