Liverpool and former England defender Gilly Flaherty has announced her retirement from professional football at the age of 31.