England and Harlequins prop Joe Marler has announced he will retire from professional rugby on Friday.