Glee creator/director Ryan Murphy has bought Charlize Theron's former beach home in Malibu, California for $7 million (£4.2 million).