More than 300 workers are to lose their jobs with the closure of The Brown Shoe factory in Perth.