Aldi will cut hundreds of jobs in the UK as part of efforts to reduce costs and move roles overseas as sales fail to keep pace with rivals.