Caleb Ewan (Orica Scott) claimed a hat-trick of stage wins at the Tour of Britain with victory on Stage 6.