Liverpool midfielder Joe Allen has revealed his impending shoulder operation will leave him on the sidelines for three months.