Worcestershire seamer Alan Richardson has announced his retirement after agreeing to take up a coaching job with Warwickshire.