Real Madrid have signed Mesut Ozil from Werder Bremen for an undisclosed fee, reported to be around 15 million euros.